From 4589da957b30e9b3e99075782ab3253bce790ebb Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Wed, 17 Jan 2018 13:43:11 +0100 Subject: [PATCH] extensionSystem: Add methods to enable/disable extensions Extensions are currently enabled or disabled by directly changing the list in the 'enabled-extensions' GSettings key. As we will soon add an overriding 'disabled-extensions' key as well, it makes sense to offer explicit API for enabling/disabling to avoid duplicating the logic. For the corresponding D-Bus API, the methods were even mentioned in the GSettings schema, albeit unimplemented until now. https://bugzilla.gnome.org/show_bug.cgi?id=789852 --- .../org.gnome.Shell.Extensions.xml | 24 +++++++++++++++++ js/ui/extensionDownloader.js | 10 ++----- js/ui/extensionSystem.js | 26 +++++++++++++++++++ js/ui/shellDBus.js | 8 ++++++ 4 files changed, 60 insertions(+), 8 deletions(-) diff --git a/data/dbus-interfaces/org.gnome.Shell.Extensions.xml b/data/dbus-interfaces/org.gnome.Shell.Extensions.xml index 34a65af44..309a9f207 100644 --- a/data/dbus-interfaces/org.gnome.Shell.Extensions.xml +++ b/data/dbus-interfaces/org.gnome.Shell.Extensions.xml @@ -173,6 +173,30 @@ + + \ + \ + \ + \ + + + \ + \ + \ + \ +